var someVar = obj[ "key" ] || 0;